Skip to content

Conversation

@skirridsystems
Copy link
Contributor

Use a single inline SVG icon in place of the two PNG icons. Correct alignment on touchscreens.
The reason for using !important in the CSS is to prevent styling with high specificity from overriding the button icon and color. This can happen with the WordPress default 2021 theme.

Use a single inline SVG icon in place of the two PNG icons. Correct alignment on touchscreens.
The reason for using !important in the CSS is to prevent <a> styling with high specificity from overriding the button icon and color. This can happen with the WordPress default 2021 theme.
hswong3i added a commit to drustack/brunob-leaflet.fullscreen that referenced this pull request Nov 29, 2021
Existing implementation using `icon-fullscreen.png` and
`icon-fullscreen-2x.png` for different screen (e.g. iOS with retina
display). Moreover, we don't have any toggle effect for the icon status.

This PR rework the icon with:
* Locally vendor Font Awesome v5.15.4 `compress-solid.svg` and
  `expand-solid.svg`
* Add default content for icon
* Add toggle status for icon
* Rework style with SCSS
* Create minified version JS and CSS
* Simplify demo and README.md with above changes

Some style reuse from: domoritz/leaflet-locatecontrol#296

Online demo: https://drustack.github.io/brunob-leaflet.fullscreen/

Fix brunob#87

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
@brunob
Copy link
Owner

brunob commented Dec 3, 2021

Done with #98

@brunob brunob closed this Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants